﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Reap.Common.Runtime {

	/// <summary>
	/// 参数
	/// </summary>
	public class Parameter {

		#region .ctor
		public Parameter(string name, object value)
		{
			this.Name = name;
			this.ValueCallback =()=>value;
		}

		public Parameter(string name, Func<object> value)
		{
			this.Name = name;
			this.ValueCallback = value;
		}
		#endregion

		#region Properties
		public  string Name { get; private set; }
		public  Func<object> ValueCallback { get; private set; } 
		#endregion
	}
}
